package com.example.day05.istatic;

public class StaticDemo {


    public  static   int pid=100;

    public  int id=10;


    ///静态内部类
    public   static  class   Onerclass{
        public  static  int pid=200;

        public  void  test(){
            System.out.println("inner:"+pid);

            System.out.println("out->:"+StaticDemo.pid);
        }
    }


}


class   StestDemo{
    public static void main(String[] args) {
        StaticDemo.Onerclass onerclass=new StaticDemo.Onerclass();
        onerclass.test();

        StaticDemo staticDemo=new StaticDemo();
        System.out.println(StaticDemo.pid);
        System.out.println(staticDemo.id);
    }
}
